import { Form } from 'antd';
import React from 'react';

export const AccountContext = React.createContext<any>({});
export const AccountProvider = ({ children,onSubmit }) => {
  const [form] = Form.useForm();


  return (<AccountContext.Provider value={{form,onSubmit }}>
    <Form form={form} style={{height:'100%'}}>
      {children}
    </Form>
  </AccountContext.Provider>)
}